﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using BLToolkit.DataAccess;
using BLToolkit.Mapping;

namespace PlatForm.DataLayer
{
    [TableName("Order")]
    public class Order : Devsoft.DB.Models.Flat.Model<Order>
    {
        [PrimaryKey]
        public string ORD_No { get; set; }

        public string PO_No { get; set; }

        public string ART_No { get; set; }

        public string ST_No { get; set; }

        public float DELI_QTY { get; set; }

        public float RECE_QTY { get; set; }

        public DateTime DELI_Date { get; set; }

        [MapIgnore]
        public string ART_Name { get; set; }

        [Association(ThisKey = "ART_No", OtherKey = "ART_No", CanBeNull = false)]
        public Article Article;

        [Association(ThisKey = "ST_No", OtherKey = "ST_No", CanBeNull = false)]
        public Store Store;

        [Association(ThisKey = "PO_No", OtherKey = "PO_No", CanBeNull = false)]
        public PickingOrder PickingOrder;
    }
}
